package com.elysia.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.elysia.common.utils.PageUtils;
import com.elysia.gulimall.product.entity.CategoryEntity;
import com.elysia.gulimall.product.vo.Level2CategoryVo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lixinli
 * @email 1994883492@qq.com
 * @date 2024-09-28 22:51:16
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenusByIds(List<Long> list);

    Long[] getCategoryPathById(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Category();

    Map<String, List<Level2CategoryVo>> getLevel2AndLevel3CategoryWithSpringCache();

    Map<String, List<Level2CategoryVo>> getLevel2AndLevel3Category();
}

